package cn.edu.scau.cmi.xianjiehua.composite.consitent;

import java.util.ArrayList;
import java.util.concurrent.atomic.AtomicInteger;


public class ConsitentPerson implements ConsitentComponent{
	private static AtomicInteger newInt = new AtomicInteger(1);
	private int count = newInt.getAndIncrement();
	
	@Override
	public String getName() {
		return "consitent person " + count;
	}

	@Override
	public void add(ConsitentComponent component) {
		throw new RuntimeException();
	}

	@Override
	public ArrayList<ConsitentComponent> getAllPerson() {
		throw new RuntimeException();
	}

}
